import React from 'react'
import { Globalstyle } from './style'
import Header from './common/header'
import { Globalstyle2} from '../src/img/iconfont/iconfont'
import {Provider} from 'react-redux'
import store from './store/'
import Home from "./router/home"
import {BrowserRouter,Route} from 'react-router-dom'
import Detail from './router/detail';



export default class App extends React.PureComponent {
    render(){
        return(<div>
            <Globalstyle/>
            <Globalstyle2/>     
            <Provider store={store}>
                <BrowserRouter>
                <div>
                    <Header/>
                    <Route path='/' exact component={Home}></Route>
                    <Route path='/detail' exact component={Detail}></Route>
                </div>
                </BrowserRouter>
            </Provider>
            </div>
            )
    }
}

